From a9df6cf30f4122bcb0f0245e94e29cbe1f87f10b Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Mon, 20 Nov 2006 16:59:07 +0000 Subject: [PATCH] Cleanup after the bootloader even if the domain building fails. Signed-off-by: Ewan Mellor --- tools/python/xen/xend/XendDomainInfo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 295925d1da..532ce81264 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -1326,6 +1326,8 @@ class XendDomainInfo: self._stateSet(DOM_STATE_RUNNING) except RuntimeError, exn: log.exception("XendDomainInfo.initDomain: exception occurred") + if self.info['bootloader'] and self.image is not None: + self.image.cleanupBootloading() raise VmError(str(exn)) -- 2.30.2